//
//  ZWLRecommandSectionModel.m
//  ZWLMusic
//
//  Created by dllo on 16/1/7.
//  Copyright © 2016年 ZKJ. All rights reserved.
//

#import "ZWLRecommandSectionModel.h"

@implementation ZWLRecommandSectionModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"banners"] || [key isEqualToString:@"recommends"] || [key isEqualToString:@"songs"] || [key isEqualToString:@"mvs"] || [key isEqualToString:@"firsts"] || [key isEqualToString:@"radios"] || [key isEqualToString:@"topics"]) {
        NSArray *array = value;
        self.dataSource = [[NSMutableArray alloc] initWithCapacity:0];
        for (NSDictionary *dic in array) {
            ZWLRecommandSmallModel *smallModel = [[ZWLRecommandSmallModel alloc] initWithDataSource:dic];
            [self.dataSource addObject:smallModel];
        }
    }
}

@end
